package com.acme.bankapp.service.listeners;

import com.acme.bankapp.domain.Client;

public class EmailNotificationListener implements ClientRegistrationListener {

	public void onClientAdded(Client client) {
		System.out.println("\n--- Adding client...");
		System.out.println("Notification email for client " + client.getSalutation() + " to be sent.");
	}

	public void onClientNotAdded(String message) {
		System.out.println("\n--- Adding client...");
		System.out.println("Error: " + message + "\nNotification email to be sent...");
	}

}
